package com.xinhe.cn.cpbox.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinhe.cn.cpbox.entity.po.SysUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HB
 * @date 2021-03-22
 */
@Repository
public interface SysUserMapper extends BaseMapper<SysUser> {

    @Select("select * from sys_user where username=#{username}")
    SysUser selectByUsername(@Param("username") String username);
}
